[XEN][POWERPC] Fix machine check build break.
authorHollis Blanchard <hollisb@us.ibm.com>
Fri, 8 Sep 2006 15:22:45 +0000 (10:22 -0500)
committerHollis Blanchard <hollisb@us.ibm.com>
Fri, 8 Sep 2006 15:22:45 +0000 (10:22 -0500)
Building exceptions.c with CRASH_DEBUG=y produces a build break, because
gcc complains about the unused variable.

Signed-off-by: Amos Waterland <apw@us.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
xen/arch/powerpc/exceptions.c

index 93f97d4db430a67acaf72fab9d4f388cf9f69467..ca851fa44a939dbaecb97a2559b895118edc914f 100644 (file)
@@ -55,11 +55,11 @@ void do_dec(struct cpu_user_regs *regs)
 
 void program_exception(struct cpu_user_regs *regs, unsigned long cookie)
 {
-    int recover = 0;
-
 #ifdef CRASH_DEBUG
     __trap_to_gdb(regs, cookie);
 #else /* CRASH_DEBUG */
+    int recover = 0;
+
     show_registers(regs);
     printk("dar 0x%016lx, dsisr 0x%08x\n", mfdar(), mfdsisr());
     printk("hid4 0x%016lx\n", regs->hid4);